package com.cipta.lomob;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.view.Window;
import android.view.WindowManager;

import com.cipta.lomob.fragments.BroadcastStreamingFragment;

public class BroadcastActivity  extends FragmentActivity{
	private BroadcastStreamingFragment broadcastFragment;

	@Override
	protected void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_FULLSCREEN);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_video);
		broadcastFragment = new BroadcastStreamingFragment();
		FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
		transaction.replace(R.id.frame_container, broadcastFragment);
		transaction.commit();
	}
	
	public static void toBroadcastActivity(Activity activity) {
		activity.startActivity(new Intent(activity, BroadcastActivity.class));
	}
	
}
